import PageTools from '@/components/PageTools'
import UploadExcel from '@/components/UploadExcel'
import ImageUpload from '@/components/ImageUpload'
import ScreenFull from '@/components/ScreenFull'
import ThemePicker from '@/components/ThemePicker'
import LangSwitcher from '@/components/LangSwitcher'
import tagsView from '@/components/TagsView'

export default {
  install(Vue) {
    // console.log('这是第三方组件的安装方法')
    // console.log('每当调用Vue.use的时候自动执行')
    Vue.component('PageTools', PageTools)
    // 注册导入excel组件
    Vue.component('UploadExcel', UploadExcel)
    // 图片组件
    Vue.component('ImageUpload', ImageUpload)
    // 全屏
    Vue.component('ScreenFull', ScreenFull)
    // 主题插件
    Vue.component('ThemePicker', ThemePicker)
    // 下拉组件选择语言
    Vue.component('LangSwitcher', LangSwitcher)
    // 多页签组件
    Vue.component('tagsView', tagsView)
  }
}

